package com.hlkj.warboot.module_sys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hlkj.warboot.module_sys.entity.AdminEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 系统管理员 Mapper 接口
 * </p>
 *
 * @author lixing_java@163.com
 * @since 2020-06-11
 */
public interface AdminMapper extends BaseMapper<AdminEntity> {
    AdminEntity queryAuthoritiesForLogin(AdminEntity entity) throws Exception;
    AdminEntity queryPermissionForMenu(AdminEntity entity) throws Exception;
    int deleteAdminRole(AdminEntity entity) throws Exception;
    int insertAdminRole(AdminEntity entity) throws Exception;
    /**
     * @Description 自定义分页
     * @Author lixing
     * @Date 2020/12/9 20:40
     */
    Page<AdminEntity> adminPage(Page<AdminEntity> page, AdminEntity adminEntity);
}
